package com.luzj.entity;

/**
 * Created by Administrator on 2016/9/22.
 */
public class Game {
    private int id;
    private String name;
//    private String type;
    //测评分数
//    private String score;
    //下载量
//    private String downCount;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object obj) {
        //引用检测
        if(this==obj){
            return true;
        }
        //类类型检查
        if(obj==null||(this.getClass()!=obj.getClass())){
            return false;
        }
        //名称检测，不同的游戏绝对名称不一样
        Game game = (Game)obj;
         if(this.name!=null?!this.name.equals(game.getName()):game.name!=null){
             return false;
         }
        return true;
    }

}
